/**
 * @description: Login interface parameters
 */
export interface LoginParams {
  username: string;
  password: string;
}

export interface LoginOutParams{
  token: string
}
export interface RoleInfo {
  roleName: string;
  value: string;
}

/**
 * @description: Login interface return value
 */
export interface LoginResultModel {
  // userId: string | number;
  // token: string;
  // role: RoleInfo;{}
  code:string | number;
  data:{
    accessToken: string;
    refreshToken: string;
    expiration: string;
  };
  msg:string

}

/**
 * @description: Get user information return value
 */
export interface GetUserInfoModel {
  code:string | number;
  data:{
    roles: RoleInfo[];
    // 用户id
    userId: string | number;
    // 用户名
    username: string;

    // 真实名字
    realName: string;
    // 头像
    avatar: string;
    // 介绍
    phoneNum?: string;
  };
  msg:string
}
